package cn.skyclass.events
{
	import flash.events.Event;
	
	/**
	 * 自定义事件类型
	 */
	public class SubmitEvent extends Event
	{
		public static const INITED:String = "inited";
		public static const SUBMIT:String = "submit";
		public static const CANCEL:String = "cancel";
		public static const SUBMITTING:String = "submitting";
		public static const SUBMITTED:String = "submitted";
		public static const FAILED:String = "failed";
		public static const CANCELED:String = "canceled";
				
		public var msg:String;
		public var data:Object;
		
		public function SubmitEvent(type:String, data:Object=null, msg:String=null){
			super(type);
			this.msg = msg;
			this.data = data;
		}
		
		override public function clone():Event{
			return new SubmitEvent(this.type, this.data, this.msg);
		}				
	}
}